package com.kqb.sgadmin.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kqb.sgadmin.model.Admin;
import com.kqb.sgadmin.model.dto.admin.AdminLoginDTO;
import com.kqb.sgadmin.model.vo.AdminVO;

/**
 * @author D
 * @description 针对表【t_admin(管理员表)】的数据库操作Service
 * @createDate 2025-06-16 14:14:59
 */
public interface AdminService extends IService<Admin> {


    /**
     * 判断用户名或手机号是否存在
     *
     * @param username
     * @param phone
     * @return
     */
    boolean isExist(String username, String phone);

    SaTokenInfo login(AdminLoginDTO adminLoginDTO);

}
